package com.cscec5b.inspection.dto;

public class ManualFormItemDTO {
    private String keyPrefix;     // rebar_appearance
    private String title;         // 中文标题
    // 标准（只读）
    private String require;
    private Integer sampleTotal;
    private Integer minNumber;
    // 数据（可写）
    private Integer number;
    private String  record;
    private String  result;
    // 附件
    private boolean hasPhoto;
    private boolean hasPdf;
    private String  photoUrl;
    private String  pdfUrl;
    // NEW：类型 + 扩展字段
    private Integer itemType;   // 1/2/3

    // type2 扩展
    private Integer passCount;   // 合格数
    private String  passRate;    // 合格率（"95%" 这种字符串）

    // type3 扩展
    private String  position;    // 验收部位（自动填充）
    private boolean readOnly;    // 前端可用来整体只读（设备导入）
    private String  collector;      // 采集人（手填）
    private Boolean resample;       // 是否重新采集（来自 tasks.fail_resample）
    private String  taskLocation;   // 检验批部位（来自 tasks.task_location；type=3 隐藏）


    // getters/setters
    // ...
    public String getKeyPrefix(){return keyPrefix;} public void setKeyPrefix(String v){keyPrefix=v;}
    public String getTitle(){return title;} public void setTitle(String v){title=v;}
    public String getRequire(){return require;} public void setRequire(String v){require=v;}
    public Integer getSampleTotal(){return sampleTotal;} public void setSampleTotal(Integer v){sampleTotal=v;}
    public Integer getMinNumber(){return minNumber;} public void setMinNumber(Integer v){minNumber=v;}
    public Integer getNumber(){return number;} public void setNumber(Integer v){number=v;}
    public String getRecord(){return record;} public void setRecord(String v){record=v;}
    public String getResult(){return result;} public void setResult(String v){result=v;}
    public boolean isHasPhoto(){return hasPhoto;} public void setHasPhoto(boolean v){hasPhoto=v;}
    public boolean isHasPdf(){return hasPdf;} public void setHasPdf(boolean v){hasPdf=v;}
    public String getPhotoUrl(){return photoUrl;} public void setPhotoUrl(String v){photoUrl=v;}
    public String getPdfUrl(){return pdfUrl;} public void setPdfUrl(String v){pdfUrl=v;}

    public Integer getItemType() {
        return itemType;
    }

    public void setItemType(Integer itemType) {
        this.itemType = itemType;
    }

    public Integer getPassCount() {
        return passCount;
    }

    public void setPassCount(Integer passCount) {
        this.passCount = passCount;
    }

    public String getPassRate() {
        return passRate;
    }

    public void setPassRate(String passRate) {
        this.passRate = passRate;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public boolean isReadOnly() {
        return readOnly;
    }

    public void setReadOnly(boolean readOnly) {
        this.readOnly = readOnly;
    }
    public String  getCollector() { return collector; }
    public void    setCollector(String collector) { this.collector = collector; }
    public Boolean getResample() { return resample; }
    public void    setResample(Boolean resample) { this.resample = resample; }
    public String  getTaskLocation() { return taskLocation; }
    public void    setTaskLocation(String taskLocation) { this.taskLocation = taskLocation; }
}
